<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>创建加人计划</title>
    <link rel="stylesheet" href="../assets/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../assets/style/admin.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <script src="../assets/layui/layui.js"></script>
    <script src="../assets/js/common.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="../common/header.js"></script>
    <!-- 内容主体区域 -->
    <div id="LAY_app_body">
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            <a href="../../code/customer_source/add.html"
                               class="layui-btn layui-btn-sm layui-btn-normal">1、导入数据</a>
                            <i class="layui-icon layui-icon-right" style="font-size: 20px;"></i>
                            <a href="../../code/message/editGroupEnhance.html"
                               class="layui-btn layui-btn-sm layui-btn-normal">2、编辑验证消息</a>
                            <i class="layui-icon layui-icon-right" style="font-size: 20px;"></i>
                            <a href="../../code/add_friend_plan/add.html" class="layui-btn layui-btn-sm">3、创建加人计划</a>
                        </div>
                        <div class="layui-card-body">
                            <form class="layui-form" action="" onsubmit="return false;">
                                <input type="hidden" name="id" value="">
                                <input type="hidden" id="process_status" name="process_status" value="2">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">计划名称</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="name" lay-verify="required" autocomplete="off"
                                               placeholder="请输入计划名称" class="layui-input" value="">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-inline">
                                        <label class="layui-form-label">加人时段</label>
                                        <div class="layui-input-inline" style="width: 100px;">
                                            <select name="start_hour" lay-verify="start_hour">
                                                <option value="0">00:00:00</option>
                                                <option value="1">01:00:00</option>
                                                <option value="2">02:00:00</option>
                                                <option value="3">03:00:00</option>
                                                <option value="4">04:00:00</option>
                                                <option value="5">05:00:00</option>
                                                <option value="6">06:00:00</option>
                                                <option value="7">07:00:00</option>
                                                <option value="8">08:00:00</option>
                                                <option value="9">09:00:00</option>
                                                <option value="10">10:00:00</option>
                                                <option value="11">11:00:00</option>
                                                <option value="12">12:00:00</option>
                                                <option value="13">13:00:00</option>
                                                <option value="14">14:00:00</option>
                                                <option value="15">15:00:00</option>
                                                <option value="16">16:00:00</option>
                                                <option value="17">17:00:00</option>
                                                <option value="18">18:00:00</option>
                                                <option value="19">19:00:00</option>
                                                <option value="20">20:00:00</option>
                                                <option value="21">21:00:00</option>
                                                <option value="22">22:00:00</option>
                                                <option value="23">23:00:00</option>
                                            </select>
                                        </div>
                                        <div class="layui-form-mid">-</div>
                                        <div class="layui-input-inline" style="width: 100px;">
                                            <select name="end_hour" lay-verify="end_hour">
                                                <option value="0">00:59:59</option>
                                                <option value="1">01:59:59</option>
                                                <option value="2">02:59:59</option>
                                                <option value="3">03:59:59</option>
                                                <option value="4">04:59:59</option>
                                                <option value="5">05:59:59</option>
                                                <option value="6">06:59:59</option>
                                                <option value="7">07:59:59</option>
                                                <option value="8">08:59:59</option>
                                                <option value="9">09:59:59</option>
                                                <option value="10">10:59:59</option>
                                                <option value="11">11:59:59</option>
                                                <option value="12">12:59:59</option>
                                                <option value="13">13:59:59</option>
                                                <option value="14">14:59:59</option>
                                                <option value="15">15:59:59</option>
                                                <option value="16">16:59:59</option>
                                                <option value="17">17:59:59</option>
                                                <option value="18">18:59:59</option>
                                                <option value="19">19:59:59</option>
                                                <option value="20">20:59:59</option>
                                                <option value="21">21:59:59</option>
                                                <option value="22">22:59:59</option>
                                                <option value="23" selected>23:59:59</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item layui-hide">
                                    <label class="layui-form-label">加人次数</label>
                                    <div class="layui-input-inline">
                                        <select name="daily_per_wechat">
                                            <option value="0">不限次数</option>
                                            <option value="5">5 次/微信号/天</option>
                                            <option value="10">10 次/微信号/天</option>
                                            <option value="15">15 次/微信号/天</option>
                                            <option value="20">20 次/微信号/天</option>
                                            <option value="25">25 次/微信号/天</option>
                                            <option value="30">30 次/微信号/天</option>
                                            <option value="35">35 次/微信号/天</option>
                                            <option value="40">40 次/微信号/天</option>
                                            <option value="45">45 次/微信号/天</option>
                                            <option value="50">50 次/微信号/天</option>
                                        </select>
                                    </div>
                                </div>

                                <fieldset class="layui-elem-field">
                                    <legend>数据表格</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item" style="display: none;">
                                            <label class="layui-form-label">已选数据</label>
                                            <div class="layui-input-block" id="exist_customer_source">
                                                <p id="no_customer_source" class="layui-form-mid"
                                                   style="color: red;display: none;">未选择</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">可选数据</label>
                                            <div class="layui-input-block" id="availableCustomerSources">
                                                <div class="layui-form-mid">无</div>
                                            </div>
                                            <div class="layui-form-mid layui-text"><a
                                                    href="../../code/customer_source/index.html" target="_blank"><i
                                                    class="layui-icon layui-icon-about" style="color: #1E9FFF;"></i>导入数据管理</a>
                                                <span style="color: green;">（多个计划共用一份数据表格并不会导致重复加好友）</span></div>
                                        </div>
                                    </div>
                                </fieldset>

                                <fieldset class="layui-elem-field">
                                    <legend>验证消息</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">类型</label>
                                            <div class="layui-input-block">
                                                <input type="radio" name="messageType" value="1" title="单句验证消息"
                                                       lay-filter="switchMessageType" checked>
                                                <input type="radio" name="messageType" value="2" title="验证消息组"
                                                       lay-filter="switchMessageType">
                                                <!--<input type="radio" name="messageType" value="3" title="自动识别昵称" lay-filter="switchMessageType" >-->
                                                <input type="radio" name="messageType" value="4" title="微信默认"
                                                       lay-filter="switchMessageType">
                                            </div>
                                        </div>
                                        <div class="layui-form-item" id="single_message">
                                            <label class="layui-form-label">验证消息</label>
                                            <div class="layui-input-inline" style="width: 700px;">
                                                <input type="text" name="content" autocomplete="off"
                                                       placeholder="请输入验证消息" class="layui-input" value="">
                                            </div>
                                        </div>
                                        <div id="many_message" style="display: none;">
                                            <div class="layui-form-item" style="display: none;">
                                                <label class="layui-form-label">已选组</label>
                                                <div class="layui-input-block" id="exist_message_group">
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <label class="layui-form-label">可选组</label>
                                                <div class="layui-input-block" id="availableMessageGroups">
                                                    <div class="layui-form-mid">无</div>
                                                </div>
                                                <div class="layui-form-mid layui-text"><a
                                                        href="../message/groupIndex.html" target="_blank"><i
                                                        class="layui-icon layui-icon-about" style="color: #1E9FFF;"></i>验证消息组管理</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>

                                <fieldset class="layui-elem-field">
                                    <legend>微信组</legend>
                                    <div class="layui-field-box">
                                        <div class="layui-form-item" style="display: none;">
                                            <label class="layui-form-label">已选组</label>
                                            <div class="layui-input-block" id="exist_group">
                                                <p id="no_group" class="layui-form-mid"
                                                   style="color: red;display: none;">未选择</p>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label class="layui-form-label">可选组</label>
                                            <div class="layui-input-block" id="availableGroups">
                                                <div class="layui-form-mid">无</div>
                                            </div>
                                            <div class="layui-form-mid layui-text"><a href="../../code/index.html"
                                                                                      target="_blank"><i
                                                    class="layui-icon layui-icon-about" style="color: #1E9FFF;"></i>微信组管理</a>
                                            </div>
                                        </div>
                                    </div>
                                </fieldset>

                                <div class="layui-form-item" style="display: none;">
                                    <label class="layui-form-label">状态</label>
                                    <div class="layui-input-inline">
                                        <input type="checkbox" name="status" step="" value="1" lay-skin="switch"
                                               lay-text="启用|禁用" lay-filter="statusDemo" checked>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="formSubmit"
                                                onclick="setProcessStatus(false);">保存
                                        </button>
                                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit"
                                                onclick="setProcessStatus(true);">保存并执行
                                        </button>
                                        <a class="layui-btn layui-btn-primary"
                                           href="index.html">返回列表</a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../assets/js/add_friend_plan.js"></script>
</div>
</body>
</html>
